package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class GatheringQueryForObject extends QueryForObject{
    private String keyword;//姓名/营销人员/录入人
    private Long classesId;//班级id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;


    public String getKeyword() {
        return keyword == null || "".equals(keyword.trim()) ? null : keyword;
    }

}
